package com.dongdongshop.mapper;

import com.dongdongshop.pojo.TbItem;
import com.dongdongshop.pojo.TbItemCat;
import com.dongdongshop.pojo.TbItemCatExample;
import java.util.List;

import com.dongdongshop.util.PageBean;
import org.apache.ibatis.annotations.Param;

public interface TbItemCatMapper {
    int countByExample(TbItemCatExample example);

    int deleteByExample(TbItemCatExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TbItemCat record);

    int insertSelective(TbItemCat record);

    List<TbItemCat> selectByExample(TbItemCatExample example);

    TbItemCat selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TbItemCat record, @Param("example") TbItemCatExample example);

    int updateByExample(@Param("record") TbItemCat record, @Param("example") TbItemCatExample example);

    int updateByPrimaryKeySelective(TbItemCat record);

    int updateByPrimaryKey(TbItemCat record);

    List<TbItemCat> getinfo(@Param("b") PageBean<TbItemCat> b,@Param("pid")Long pid);

    List<TbItemCat> getinfoByPid(Long pid);

    Integer deleteAll(@Param("ids")Long[] ids);

    Integer deleteAllByPid(@Param("ids")Long[] ids);

    List<TbItemCat> getByPid(Long id);

}